cb9fca7bd81dc1d0878b62b75f9309637691eda1,obj-c-xml-client/src/main/java/com/webcohesion/enunciate/modules/objc_client/ReferencedNamespacesMethod.java,ReferencedNamespacesMethod,exec,#List#,47

Before Change


      addReferencedNamespaces(typeDef, referencedNamespaces);
    }
    else if (elementDeclaration instanceof LocalElementDeclaration) {
      TypeDefinition typeDefinition = context.findTypeDefinition(((LocalElementDeclaration) elementDeclaration).getElementType());
      if (typeDefinition != null) {
        addReferencedNamespaces(typeDefinition, referencedNamespaces);
      }

After Change


    }
    else if (elementDeclaration instanceof LocalElementDeclaration) {
      TypeElement typeElement = null;
      TypeMirror elementType = ((LocalElementDeclaration)elementDeclaration).getElementType();
      if (elementType instanceof DeclaredType) {
        javax.lang.model.element.Element element = ((DeclaredType) elementType).asElement();
        if (element instanceof TypeElement) {
          typeElement = (TypeElement) element;
        }